<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
	<meta charset="utf-8"/>
	<title>新增</title>
	<meta name="renderer" content="webkit" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
	<meta name="apple-mobile-web-app-status-bar-style" content="black"/>
	<meta name="apple-mobile-web-app-capable" content="yes"/>
	<meta name="format-detection" content="telephone=no"/>

    <link rel="stylesheet" th:href="@{/layui/css/layui.css}" media="all" />
    <link rel="stylesheet" th:href="@{/css/user.css}" media="all" />
	<link rel="stylesheet" type="text/css" th:href="@{/js/plugins/TUpload/css/upload.css}" />
</head>
<body class="childrenBody">
<a style="display:none" th:href="${#httpServletRequest.getScheme() + '://' + #httpServletRequest.getServerName() + ':' + #httpServletRequest.getServerPort()  + #httpServletRequest.getContextPath() + '/'}" id="contextPath"></a>

<form class="layui-form" action="http://www.baidu.com" id="prizeAddForm">

    <div class="layui-form-item">
        <label class="layui-form-label">奖品类型</label>
        <div class="layui-input-block">
            <input type="checkbox" name="pTypeCheck" title="实物"/><div class="layui-unselect layui-form-checkbox"><span>虚拟</span><i class="layui-icon layui-icon-ok"></i></div>
            <input type="checkbox" name="pTypeCheck" title="虚拟" checked=""/><div class="layui-unselect layui-form-checkbox layui-form-checked"><span>实物</span><i class="layui-icon layui-icon-ok"></i></div>
        </div>
        <input type="hidden" value="" name="pType" id="pTypeValue"/>
    </div>
    <div class="layui-form-item" >
        <label class="layui-form-label">奖品名称</label>
        <div class="layui-input-block">
            <input type="text" name="title" required="required"  placeholder="请输入名称" autocomplete="off" class="layui-input"/>
        </div>
    </div>
    <div class="layui-form-item" >
        <label class="layui-form-label">中奖人数</label>
        <div class="layui-input-inline">
            <input type="text"  name="winners" required="required"  class="layui-input" />
        </div>
        <div class="layui-form-mid layui-word-aux">后台可设置</div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">兑换方式</label>
        <div class="layui-input-block">
            <input type="checkbox" name="modeCheck" title="邮寄"/><div class="layui-unselect layui-form-checkbox"><span>邮寄</span><i class="layui-icon layui-icon-ok"></i></div>
            <input type="checkbox" name="modeCheck" title="客户端H5页面" checked=""/><div class="layui-unselect layui-form-checkbox layui-form-checked"><span>客户端H5页面</span><i class="layui-icon layui-icon-ok"></i></div>
        </div>
        <input type="hidden" value="" name="mode" id="modeValue"/>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">开始时间</label>
        <div class="layui-input-inline">
            <input type="text" value="" required="required" name="publishTime" placeholder="请输入日期"  onclick="layui.laydate({elem: this,min: laydate.now(), format: 'YYYY-MM-DD hh:mm:ss'})" class="layui-input "/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">结束时间</label>
        <div class="layui-input-inline">
            <input type="text" value="" required="required" name="deadlineTime" placeholder="请输入日期"  onclick="layui.laydate({elem: this,min: laydate.now(), format: 'YYYY-MM-DD hh:mm:ss'})" class="layui-input "/>
        </div>
    </div>

    <div class="layui-form-item">
        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
            <legend>使用说明</legend>
        </fieldset>

        <input type="file" lay-type="file" name="file" class="layui-upload-file"/>
    </div>
    <div class="layui-form-item">
        <input type="hidden" id="direction" name="direction" value=""/>
    </div>

    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit="" id="submitPrize">立即提交</button>
            <button class="layui-btn" lay-submit="" id="submitPrizeToDraft">保存为草稿</button>
            <input class="layui-btn" type="submit" id="" value="立即提交" style="display: none;"/>
            <!--<input class="layui-btn" type="submit" value="保存为草稿"/>-->
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>


</form>
<!--<form class="layui-form" id="prizeAddForm">
    <div class="layui-form-item" style="display:none">
        <label class="layui-form-label">pId</label>
        <div class="layui-input-block">
            <input type="text" th:value="${prize.pId}" name="pId"  class="layui-input"  />
        </div>
    </div>

    <div class="layui-form-item" style="display:none">
        <label class="layui-form-label">id</label>
        <div class="layui-input-block">
            <input type="text" th:value="${prize.id}" name="id"  class="layui-input"  />
        </div>
    </div>

    <div class="layui-form-item" >
        <label class="layui-form-label">title</label>
        <div class="layui-input-block">
            <input type="text" th:value="${prize.title}" name="title"  class="layui-input" />
        </div>
    </div>

    <div class="layui-form-item" >
        <label class="layui-form-label">pType</label>
        <div class="layui-input-block">
            <input type="text" th:value="${prize.pType}" name="pType"  class="layui-input" />
        </div>
    </div>

    <div class="layui-form-item" >
        <label class="layui-form-label">covertCode</label>
        <div class="layui-input-block">
            <input type="text" th:value="${prize.covertCode}" name="covertCode"  class="layui-input" />
        </div>
    </div>

    <div class="layui-form-item" >
        <label class="layui-form-label">winners</label>
        <div class="layui-input-block">
            <input type="text" th:value="${prize.winners}" name="winners"  class="layui-input" />
        </div>
    </div>

    <div class="layui-form-item" >
        <label class="layui-form-label">mode</label>
        <div class="layui-input-block">
            <input type="text" th:value="${prize.mode}" name="mode"  class="layui-input" />
        </div>
    </div>

    <div class="layui-form-item" >
        <label class="layui-form-label">direction</label>
        <div class="layui-input-block">
            <input type="text" th:value="${prize.direction}" name="direction"  class="layui-input" />
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">createTime</label>
        <div class="layui-input-block">
            <input type="text" value="" name="createTime" placeholder="请输入日期"  onclick="layui.laydate({elem: this,max: laydate.now(), format: 'YYYY-MM-DD hh:mm:ss'})" class="layui-input userBirthday"/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">updateTime</label>
        <div class="layui-input-block">
            <input type="text" value="" name="updateTime" placeholder="请输入日期"  onclick="layui.laydate({elem: this,max: laydate.now(), format: 'YYYY-MM-DD hh:mm:ss'})" class="layui-input userBirthday"/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">publishTime</label>
        <div class="layui-input-block">
            <input type="text" value="" name="publishTime" placeholder="请输入日期"  onclick="layui.laydate({elem: this,max: laydate.now(), format: 'YYYY-MM-DD hh:mm:ss'})" class="layui-input userBirthday"/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">deadlineTime</label>
        <div class="layui-input-block">
            <input type="text" value="" name="deadlineTime" placeholder="请输入日期"  onclick="layui.laydate({elem: this,max: laydate.now(), format: 'YYYY-MM-DD hh:mm:ss'})" class="layui-input userBirthday"/>
        </div>
    </div>
    <div class="layui-form-item" >
        <label class="layui-form-label">createPerson</label>
        <div class="layui-input-block">
            <input type="text" th:value="${prize.createPerson}" name="createPerson"  class="layui-input" />
        </div>
    </div>


	<div class="layui-form-item" style="margin-left: 5%;">
		<div class="layui-input-block">
			<button class="layui-btn" lay-submit="submitPrize" lay-filter="submitPrize">立即提交</button>
			<button class="layui-btn layui-btn-primary" id="resetBtn">重置</button>
		</div>
	</div>
</form>-->
<script type="text/javascript" th:src="@{/js/plugins/FroalaEditor/js/jquery-1.9.1.min.js}"></script>
<script type="text/javascript" th:src="@{/layui/layui.js}"></script>
<!--<script type="text/javascript" th:src="@{/js/common/util.js}"></script>-->
<script type="text/javascript" th:src="@{/js/plugins/TUpload/js/T_upload.js}"></script>
<script type="text/javascript" th:src="@{/js/prize/prizeAdd.js}"></script>
<!--<script>-->
    <!--$().ready(function() {-->
        <!--$("#prizeAddForm").validate({-->
            <!--submitHandler:function(form){-->
                <!--alert("提交事件!");-->
                <!--form.submit();-->
            <!--}-->
        <!--});-->
    <!--});-->
<!--</script>-->
</body>
</html>